GtkStack: Remove some useless function calls
authorTimm Bäder <mail@baedert.org>
Sun, 24 May 2015 19:20:48 +0000 (21:20 +0200)
committerTimm Bäder <mail@baedert.org>
Fri, 29 May 2015 15:37:04 +0000 (17:37 +0200)
We will call gtk_widget_queue_resize anyway later when finishing the
(maybe non-running) transition, which will also cause the stack to be
repainted.

gtk/gtkstack.c

index f36026d39e9457a341c4681976223d51a57a6d58..02525c692dfc1919ae835b89bf95c08fb7879cc2 100644 (file)
@@ -1110,9 +1110,6 @@ set_visible_child (GtkStack               *stack,
       transition_type = get_simple_transition_type (i_first, transition_type);
     }
 
-  gtk_widget_queue_resize (GTK_WIDGET (stack));
-  gtk_widget_queue_draw (GTK_WIDGET (stack));
-
   g_object_notify_by_pspec (G_OBJECT (stack), stack_props[PROP_VISIBLE_CHILD]);
   g_object_notify_by_pspec (G_OBJECT (stack),
                             stack_props[PROP_VISIBLE_CHILD_NAME]);